package com.xgh.design.decorated;

/**
 * @ClassName RedShapeDecorator
 * @Description
 * @Author xinggh
 * @Date 2020/8/6 19:43
 * @Version 1.0
 **/
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        super.draw();
        red();
    }

    private void red() {
        System.out.println("增加点红色");
    }
}
